function xq() {
    return new Promise((resolve,reject) => {
        setTimeout(() =>{
            console.log('赖师傅相亲了！');
            resolve()
        },2000)
    })

}

function marry() {
    return new Promise((resolve,reject) => {   
    setTimeout(() => {
        console.log('赖师傅结婚了！');
        resolve()
    },1000)
    })
}

function baby() {
    return new Promise((resolve,reject) => {
        setTimeout(() =>{
            console.log('小赖');
            resolve()
        },500)
    })

}
function baby2() {
    setTimeout(() =>{
        console.log('小小赖出生了');
    },500)
}

xq()
.then(() => {
    return marry()
})
.then(() =>{
    return baby()
})
.then(() =>{
    return baby2()
})
// marry()
// baby()
